<?php
$TJC4sMN;
goto hdUOMO_1Ah;
heoVG3Tx5E:
RqHdKenDaZ:
if ($conf['cgcs'] == 0x001) {
    goto T3rJLRfQdX;
}
goto f2C1iLjzz2;
T3rJLRfQdX:
$DB->query('insert into `meihe_list` (`domain`,`date`,`type`) values (\'' . $domain . '\',\'' . $date . '\',\'2\'\')');
goto VkXNnt_R_1;
Tg5WrZYzH4:
$title = daddslashes($_POST['title']);
$sbm = daddslashes($_GET['sbm']);
$sbm = daddslashes($_POST['sbm']);
goto of_j5ftOJ5;
sZqfAe2fGO:
goto RpXeHES3g4;
aaVdnCgGWx:
$apihost = $DB->get_row("\123\x45\x4c\x45\x43\x54\x20\x2a\x20\106\x52\117\115\40\x6d\145\151\x68\x65\137\141\x70\151\x20\x57\x48\105\x52\105\40\163\142\x6d\75\x27{$vvalue}\47\40\154\x69\x6d\151\164\x20\x31");
if (!(!$apihost || $apihost['jktz'] != 0x001)) {
    goto nTd2mankI1;
}
goto tHLtTTfLWT;
nTd2mankI1:
if (!$apihost || $apihost['jkfl'] != 0x001 && $row['type'] != 0x001) {
    goto IfgmYjkvz6;
}
goto xY5T8ELIq4;
bw2WVksMEM:
$remaining_seconds = $conf['jmsc'] - $time_difference;
if ($time_difference < $conf['jmsc']) {
    goto mfV9kQLAaP;
}
goto FWJ9Sd0Im3;
mfV9kQLAaP:
exit('{"code":-1,"msg":"生成频率太高！请等待' . $remaining_seconds . '秒后再生成"}');
goto QQ4mn1Q4rd;
t2_b3iWdpq:
okor2gWPgH:
if (isset($_GET['api'])) {
    goto fPQwDk5VT5;
}
goto Ml5cS84qA1;
fPQwDk5VT5:
$api = $_GET['api'];
goto Gjm4pw3zAD;
DglDBimIRs:
goto zettQScTcS;
QD74KCfqkM:
$uid2 = $sbm;
S24E4ZhK48:
if (!($row['type'] != 0x001)) {
    goto PUhb32zQPN;
}
goto ck_FSYBPbg;
xY5T8ELIq4:
goto vYfyPr43fP;
IfgmYjkvz6:
exit('{"msg":"当前短链接口会员才能使用！"}');
goto lUb7ZfSHTq;
SKB9dy4l9m:
goto IhoNVFw3Cj;
DKfDYygA5h:
goto MqKcQbYTlw;
LNgAMbfTge:
$tqq_url = file_get_contents($dljk . urlencode($resulturl));
$tqq_url = json_decode($tqq_url, !0);
$tqq_url = $tqq_url['' . $apihost['fhzd'] . ''];
goto KCRuYDImpg;
yiDtOkTEEB:
goto iKd463aH8j;
hRMnktRbY2:
goto peBfSsRYMy;
OMrCfJqEAZ:
goto LlcPWPfcxG;
goto b2tqYOH1ML;
raODMK3Mdz:
goto oeCuthbkej;
jYWYA_xQwT:
goto Epbyt6RU3w;
cLZTFHYaXQ:
if ($title) {
    goto ELoQVc9f_h;
}
goto i3iXs0ufQd;
W1QGQaW0jQ:
goto g3ZvVsHo3l;
LlcPWPfcxG:
$dljk = $apihost['apiurl'];
goto peBfSsRYMy;
GiLvG3chrq:
goto v0h2mMW1My;
QQ4mn1Q4rd:
goto Q_VSuaSVLc;
ot0V0SBVhZ:
$vvalue = $_POST['type'];
lqpbv01o2I:
if ($vvalue == null) {
    goto e0uGV5LYwg;
}
goto nzhxSXy4JD;
eCjqJdIx1E:
KEpzpnh1wS:
$format = isset($_GET['format']) ? $_GET['format'] : $_POST['format'];
if (isset($_GET['type'])) {
    goto YYo2ibXlTy;
}
goto JsYIcJvRMo;
YYo2ibXlTy:
goto urCmHeFT5k;
ZZAl6zIf7t:
goto yevaDP6sPk;
HpuVKqGJE2:
$DB->query('DELETE FROM meihe_list WHERE domain=\'' . $domain . '\' ');
lV3_ES_BUH:
exit('{"code":10,"msg":"当前域名会员已到期！请联系站长续费"}');
goto HpbDGEaLu1;
oINdbejmZ0:
cmjh8_3fhE:
goto RjKaVxCuYL;
MqKcQbYTlw:
GfAWCM_0Xh:
$uid = shorturl($value);
goto QHVC6qBMDm;
FhUWxXfF1w:
ieM04_mPsO:
if ($conf['jmsc'] != 0 && isset($_SESSION['last_submit_time'])) {
    goto mRgfhcgglN;
}
goto mvhCLBq2KG;
mRgfhcgglN:
$time_difference = $current_time - $_SESSION['last_submit_time'];
goto bw2WVksMEM;
n9iUPU89Bx:
goto rtpJWOkRfL;
vip27C8O4j:
if (preg_match('/[-�]/', $value)) {
    goto ujK3EHpt4y;
}
goto kdpkK0XlZm;
ujK3EHpt4y:
goto Ess0xhw7f9;
tIs3RUvmfL:
goto X2rDlQbkF1;
wd1gLhnS1Z:
$time_difference = $current_time - $_SESSION['last_submit_time'];
$remaining_seconds = $conf['hyjmsc'] - $time_difference;
if ($time_difference < $conf['hyjmsc']) {
    goto k8J9odgHgy;
}
goto wgvYRCAIgK;
hdUOMO_1Ah:
goto T7Eei13Msc;
g3ZvVsHo3l:
exit('{"code":2,"msg":"自定义识别码只能会员享受！"}');
oGLtWBXYUR:
if (strlen($sbm) < 0x006) {
    goto GNDMK0M0YA;
}
goto bllYLAYp2r;
Noj8a6vesy:
$value = $_POST['longurl'];
goto wGE1RQ15eV;
dKyQt3jrN2:
exit('{"msg":"免费生成次数用完，已禁止生成！"}');
MueoY8DXZe:
goto HXZhaspL5v;
oqD1zsJhoK:
if (!($api == 0x00003)) {
    goto Je7Jfq0Job;
}
goto jHZI4QVnwA;
Je7Jfq0Job:
exit('{"msg":"防洪方式不存在！"}');
goto K5CyqdYNx7;
goto sck8RNLQ9x;
ucr63CWWPH:
tHLtTTfLWT:
exit('{"msg":"短链类型不存在！"}');
Ju2q_nQBBI:
goto L3ALSnbJ8t;
T7Eei13Msc:
goto Dkr45f2RIX;
VkXNnt_R_1:
f2C1iLjzz2:
goto dKyQt3jrN2;
UesoCv4PuS:
goto PmLgvkSDXn;
p2QyiBwc4S:
goto qkiVIwifOh;
x_peyR_rsX:
goto EGqbrxmuxh;
bx3a2PLZMl:
if ($row['type'] <= 0x001 && 0 <= 0 && $row['endtime'] <= $date) {
    goto Cl8LmJzTJ6;
}
goto GdFWYPX1u3;
Cl8LmJzTJ6:
goto PWVgbMrsXR;
IhoNVFw3Cj:
NVwJTh8nJV:
goto sZqfAe2fGO;
L3ALSnbJ8t:
if (!($apihost['dljk'] == 0x00003)) {
    goto M3WuccPQty;
}
goto OMrCfJqEAZ;
goto zmWFHm0Bh1;
HpbDGEaLu1:
GdFWYPX1u3:
EGqbrxmuxh:
goto iHy8B6Iq8y;
X2rDlQbkF1:
$resulturl = $header . $conf['urlapi'] . $fhb . $uid2;
goto aaVdnCgGWx;
CB39_evshm:
oGZnUlO5CO:
C9yd7gYke8:
if (!preg_match('/^http[s]?:\/\//', $value)) {
    goto pq2BXZwcfJ;
}
goto hjpciMZtoH;
pq2BXZwcfJ:
goto jCQxKRnxnl;
uFXSwvMRji:
RkrOfrvnir:
if (!($apihost['format'] == '2')) {
    goto pOwzFeQB0I;
}
goto wqMw5O6jid;
pOwzFeQB0I:
goto UesoCv4PuS;
goto XAJ_NQUnLe;
Dkr45f2RIX:
include './meihe/common.php';
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:GET,POST');
header('Access-Control-Allow-Headers:x-requested-with,content-type');
header('Content-Type: text/html; charset=utf-8');
goto n9iUPU89Bx;
sck8RNLQ9x:
Q_VSuaSVLc:
FWJ9Sd0Im3:
mvhCLBq2KG:
$_SESSION['last_submit_time'] = $current_time;
AbeIIKJCpg:
goto o_13QpzQtZ;
FHKoS68pCp:
jnM0XXwsH7:
exit('{"code":-1,"msg":"当前域名已被拉黑，无法生成！"}');
IXmhTNyv_0:
goto cLZTFHYaXQ;
bgtdoZrM0M:
goto k0piv7ShQb;
o_13QpzQtZ:
$count = $DB->count("\x53\105\x4c\105\x43\124\x20\x63\x6f\165\x6e\164\50\x2a\x29\40\x46\x52\117\115\x20\x6d\145\x69\150\x65\137\162\x65\x70\x6f\x72\x74\x20\x57\110\105\122\x45\40\x75\x72\154\x3d\47{$value}\x27");
goto C37mSNoH24;
A0iqIfmWlg:
exit('{"code":-1,"msg":"生成失败请更换短链接口！"}');
sLt1VRAHyV:
goto pyU1zbLcuV;
rPm5b_8tjX:
$url_arr = parse_url($longurl);
$domain = $url_arr['host'];
$row = $DB->get_row('SELECT * FROM meihe_list WHERE domain=\'' . $domain . '\' limit 1');
if (empty($row)) {
    goto cmjh8_3fhE;
}
goto E6QeoJdMO7;
goto oINdbejmZ0;
QHVC6qBMDm:
$myrow = $DB->get_row('select * from meihe_long where url=\'' . $value . '\' limit 1');
if (!$myrow) {
    goto q7v7McwHGe;
}
goto wm_4ze_9Kw;
q7v7McwHGe:
$DB->query('insert into `meihe_long` (`uid`,`url`) values (\'' . $uid . '\',\'' . $value . '\')');
goto DglDBimIRs;
nzhxSXy4JD:
goto Lbui7FCxdq;
e0uGV5LYwg:
$vvalue = $conf['duan'];
Lbui7FCxdq:
goto S9WsqlvrKl;
goto Zeq0migbLI;
b2tqYOH1ML:
ylomeN_UgX:
if (!(strpos($value, 'http') === !1)) {
    goto aF_3nOypUP;
}
goto jBYxFN1PdA;
aF_3nOypUP:
$longurl = daddslashes($value);
goto IGEGANOhCt;
i3iXs0ufQd:
goto MIYHio_gql;
ELoQVc9f_h:
if ($row['type'] != 0x001) {
    goto O61bC5tcMn;
}
goto vvT__ZYD4g;
O61bC5tcMn:
goto Fqq1XjAcA5;
KCRuYDImpg:
PmLgvkSDXn:
if (!$tqq_url) {
    goto BfGDYNXfUV;
}
goto sLt1VRAHyV;
BfGDYNXfUV:
goto A0iqIfmWlg;
goto ldqxD6vewe;
bllYLAYp2r:
goto xJ6yjUnHnC;
GNDMK0M0YA:
exit('{"code":2,"msg":"识别码不能低于6位！"}');
xJ6yjUnHnC:
goto QD74KCfqkM;
goto Cfe1jF9Qk_;
v0h2mMW1My:
$dljk = $apihost['djyum'] . 'fhapi.php?format=txt&type=' . $apihost['sbm'] . '&longurl=';
goto peBfSsRYMy;
goto tzJ0qfc3zW;
hUi8NVeTNA:
tAq2ZW1TXZ:
goto rPm5b_8tjX;
pyU1zbLcuV:
if ($DB->query('insert into `meihe_report` (`title`,`url`,`duanl`,`scfl`,`upzid`,`uid`,`time`,`date`,`ip`,`reason`) values (\'' . $title . '\',\'' . $longurl . '\',\'' . $apihost['sbm'] . '\',\'1\',\'' . $userrow['zid'] . '\',\'' . $uid2 . '\',\'' . TIMESTAMP . '\',\'' . $date . '\',\'' . real_ip() . '\',\'' . $fhfsb . '\')')) {
    goto iLWTwxt2ax;
}
goto uv6tYyOYsZ;
iLWTwxt2ax:
$_SESSION['user_login_mail'] = TIMESTAMP;
if (!($format === 'txt')) {
    goto jYWYA_xQwT;
}
goto raODMK3Mdz;
Gjm4pw3zAD:
goto OmN6zenOmG;
RjKaVxCuYL:
$row = $DB->get_row('SELECT * FROM meihe_list WHERE domain=\'' . get_host($domain) . '\' and `fhy`=\'2\' limit 1');
E6QeoJdMO7:
if ($row['type'] == 0x001) {
    goto bx3a2PLZMl;
}
goto x_peyR_rsX;
Fqq1XjAcA5:
exit('{"code":2,"msg":"自定义标题只能会员享受！"}');
vvT__ZYD4g:
MIYHio_gql:
goto WV1yj4L_Pb;
tzJ0qfc3zW:
goto iPRyVydwCi;
iPRyVydwCi:
iKd463aH8j:
$dljk = $apihost['duanl'] . 'ajax.php?act=dwzapi&url=';
peBfSsRYMy:
if (!($apihost['format'] == '1')) {
    goto RkrOfrvnir;
}
goto p2QyiBwc4S;
goto uFXSwvMRji;
B2f7TYCt9A:
exit($tqq_url);
goto SKB9dy4l9m;
zettQScTcS:
wm_4ze_9Kw:
if (!($api == 0x001)) {
    goto KAAWCIR_4s;
}
goto iz7rHZacvM;
XXPzvp6wpj:
TZR3svZ4y_:
exit('{"code":-1,"msg":"请你先登录后再使用！"}');
XpkRkhe7Fm:
goto KEpzpnh1wS;
Rkb_9OmHm3:
goto CB39_evshm;
YlKdqqk2to:
XoRRj2aC95:
goto wd1gLhnS1Z;
lUb7ZfSHTq:
vYfyPr43fP:
goto Ju2q_nQBBI;
goto ucr63CWWPH;
Cfe1jF9Qk_:
Epbyt6RU3w:
$result = array('code' => 0x001, 'ae_url' => $tqq_url, 'haohao_api' => $tqq_url, 'haohao_url' => $longurl);
exit(json_encode($result));
goto NVwJTh8nJV;
oeCuthbkej:
goto B2f7TYCt9A;
bh8GSPAzP0:
exit('{"code":-1,"msg":"请您输入正确的域名！"}');
goto hUi8NVeTNA;
OmN6zenOmG:
Ml5cS84qA1:
$title = daddslashes($_GET['title']);
goto Tg5WrZYzH4;
IGEGANOhCt:
goto oGZnUlO5CO;
jBYxFN1PdA:
$longurl = 'http://' . daddslashes($value);
goto Rkb_9OmHm3;
yevaDP6sPk:
goto D2uWYxvbKW;
D2uWYxvbKW:
goto H1iFuzX9oy;
rSRH2s9eui:
$fhfsb = '跳转方式';
$fhb = 'api/t.php?';
H1iFuzX9oy:
goto dx50JidL3R;
zmWFHm0Bh1:
M3WuccPQty:
if (!($apihost['dljk'] == 0x000004)) {
    goto BmP04YwsaD;
}
goto GiLvG3chrq;
BmP04YwsaD:
if (!($apihost['dljk'] == 0x05)) {
    goto hRMnktRbY2;
}
goto yiDtOkTEEB;
Ess0xhw7f9:
exit('{"msg":"域名格式不正确"}');
kdpkK0XlZm:
if (!strexists($value, '.')) {
    goto VA6mCQTnaL;
}
goto tAq2ZW1TXZ;
VA6mCQTnaL:
goto bh8GSPAzP0;
WOeDtb3Sgl:
if ($row['type'] != 0x001) {
    goto nzB6zTDh8I;
}
goto dahfQ4G8D7;
nzB6zTDh8I:
if ($count > $conf['sccs']) {
    goto RqHdKenDaZ;
}
goto MueoY8DXZe;
goto heoVG3Tx5E;
PWVgbMrsXR:
if ($conf['hydq'] == 0x001) {
    goto j5DHNhkjDs;
}
goto lV3_ES_BUH;
j5DHNhkjDs:
goto HpuVKqGJE2;
C37mSNoH24:
goto WOeDtb3Sgl;
urCmHeFT5k:
$vvalue = $_GET['type'];
JsYIcJvRMo:
if (isset($_POST['type'])) {
    goto lQjHI0GC03;
}
goto lqpbv01o2I;
lQjHI0GC03:
goto qRGXtutT0W;
wgvYRCAIgK:
goto qJJBCq_Nmb;
k8J9odgHgy:
exit('{"code":-1,"msg":"生成频率太高！请等待' . $remaining_seconds . '秒后再生成"}');
qJJBCq_Nmb:
goto pvUuHwUCGN;
goto FhUWxXfF1w;
k0piv7ShQb:
goto d87IEONTkT;
KgQW7Y2oU1:
$fhfsb = '直链方式';
$fhb = 'api/?';
d87IEONTkT:
goto tIs3RUvmfL;
iz7rHZacvM:
goto KgQW7Y2oU1;
KAAWCIR_4s:
if (!($api == 0x0002)) {
    goto xqQdCHwgle;
}
goto rSRH2s9eui;
xqQdCHwgle:
goto oqD1zsJhoK;
Zeq0migbLI:
WV1yj4L_Pb:
if (!$sbm) {
    goto qtpVuTDHgL;
}
goto waX2yfTN1b;
qtpVuTDHgL:
$uid2 = rand(0x0069f6bc7, 0x000003b9ac9ff);
goto F2RO20S129;
S5gkYDOQG0:
$value = $_GET['longurl'];
RnTv3WSpdQ:
if (isset($_POST['longurl'])) {
    goto BK2_3iFf9N;
}
goto zGhP7hQ7GW;
BK2_3iFf9N:
goto Noj8a6vesy;
XhiA3vpA6M:
iHy8B6Iq8y:
$blacklist = explode('|', $conf['lhbamd']);
$domain = parse_url($longurl, PHP_URL_HOST);
if (in_array($domain, $blacklist)) {
    goto jnM0XXwsH7;
}
goto IXmhTNyv_0;
goto FHKoS68pCp;
qkiVIwifOh:
$tqq_url = file_get_contents($dljk . urlencode($resulturl));
goto PmLgvkSDXn;
wqMw5O6jid:
goto LNgAMbfTge;
K5CyqdYNx7:
goto VMGoe5qNpi;
XAJ_NQUnLe:
S9WsqlvrKl:
if (isset($_POST['api'])) {
    goto ZQf1Sa2RNW;
}
goto okor2gWPgH;
ZQf1Sa2RNW:
$api = $_POST['api'];
goto t2_b3iWdpq;
F2RO20S129:
goto S24E4ZhK48;
waX2yfTN1b:
if ($row['type'] != 0x001) {
    goto x3cw4E6Xv2;
}
goto oGLtWBXYUR;
x3cw4E6Xv2:
goto W1QGQaW0jQ;
HXZhaspL5v:
dahfQ4G8D7:
if (!$conf['urlapi']) {
    goto QoWPjIUkru;
}
goto GfAWCM_0Xh;
QoWPjIUkru:
exit('{"msg":"没有生成接口，联系站长添加"}');
goto DKfDYygA5h;
dx50JidL3R:
goto bgtdoZrM0M;
of_j5ftOJ5:
if (isset($_GET['longurl'])) {
    goto lY2kQSiUyc;
}
goto RnTv3WSpdQ;
lY2kQSiUyc:
goto S5gkYDOQG0;
D5d8IwtcUt:
pql7xNDVVR:
exit('{"msg":"URL地址不能为空！"}');
goto C9yd7gYke8;
yJVhABOvaa:
goto ylomeN_UgX;
goto XhiA3vpA6M;
qRGXtutT0W:
goto ot0V0SBVhZ;
wGE1RQ15eV:
zGhP7hQ7GW:
if (empty($value)) {
    goto pql7xNDVVR;
}
goto yJVhABOvaa;
goto D5d8IwtcUt;
jCQxKRnxnl:
$value = 'http://' . $value;
hjpciMZtoH:
goto vip27C8O4j;
pvUuHwUCGN:
YHlFksHe3D:
goto MgJZss3lH9;
ck_FSYBPbg:
goto QNcz7J350K;
PUhb32zQPN:
$current_time = time();
if ($conf['hyjmsc'] != 0 && isset($_SESSION['last_submit_time'])) {
    goto XoRRj2aC95;
}
goto YHlFksHe3D;
goto YlKdqqk2to;
MgJZss3lH9:
$_SESSION['last_submit_time'] = $current_time;
goto AbeIIKJCpg;
QNcz7J350K:
$current_time = time();
goto ieM04_mPsO;
goto eCjqJdIx1E;
ldqxD6vewe:
rtpJWOkRfL:
session_start();
$value = NULL;
$islogin2 = $islogin2 ?? 0;
if (!$islogin2) {
    goto TZR3svZ4y_;
}
goto XpkRkhe7Fm;
goto XXPzvp6wpj;
VMGoe5qNpi:
goto BFQYwuamcE;
jHZI4QVnwA:
$fhfsb = '缩短方式';
$fhb = 'api/s.php?';
BFQYwuamcE:
goto ZZAl6zIf7t;
RpXeHES3g4:
uv6tYyOYsZ:
